package com.lianzhihui.romeex.ui.orepool;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lianzhihui.romeex.MyApplication;
import com.lianzhihui.romeex.R;
import com.lianzhihui.romeex.ui.base.BaseActivity;
import com.lianzhihui.romeex.utils.StatusBarUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @ProjectName: romeex
 * @Package: com.lianzhihui.romeex.ui.orepool
 * @ClassName: MiningEarningsActivity
 * @Description: java类作用描述
 * @Author: zhanghong
 * @CreateDate: 2020/11/13 15:10
 * @UpdateUser: 更新者：
 * @UpdateDate: 2020/11/13 15:10
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class RankActivity extends BaseActivity {
    @BindView(R.id.include_top_lin_background)
    LinearLayout includeTopLinBackground;
    @BindView(R.id.include_top_tv_title)
    TextView includeTopTvTitle;
    @BindView(R.id.state_bar)
    View stateBar;
    @Override
    protected int getLayoutId() {
        return R.layout.activity_rank_layout;
    }

    @Override
    protected void initView() {
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, stateBar.getHeight());
        layoutParams.topMargin = StatusBarUtil.getStatusBarHeight(MyApplication.mContext);
        stateBar.setLayoutParams(layoutParams);
        includeTopLinBackground.setBackgroundColor(getResources().getColor(R.color.transparent));
        StatusBarUtil.setTransparentForImageView(this, null);
        includeTopTvTitle.setText("每周社区邀请排名");
        includeTopTvTitle.setTextColor(getResources().getColor(R.color.white));
    }
    @Override
    public boolean setFitSystemWindowFlag() {
        return false;
    }
    @Override
    protected void initData() {

    }

    @OnClick({R.id.include_top_iv_back})
    public void onClick(View view) {

        switch (view.getId()) {
            case R.id.include_top_iv_back:
                finish();
                break;
            default:
                break;
        }

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
